 

import axios from '../utils/axios' 
export function getUserInfo(addValue) { 
  return axios({
    method: "GET",
    url: "/userInfo/query?userId="+addValue['userId']
  });
}
export function getVerifyPhoneCode(addValue) {
  return axios({
    method: "POST",
    url: "/passport/getSMSCode?mobile="+addValue['mobile']
  });
}
export function updateUserInfo(addValue) {
  return axios({
    method: "POST",
    url: "/userInfo/update?type=5",
    data: addValue,
  });
}

export function EditUserInfo(params) {
  return axios.put('/user/info', params);
}

export function login(addValue) {
  return axios({
    method: "POST",
    url: "/passport/login",
    data: addValue,
  });
}

export function logout(addValue) {
  return axios({
    method: "POST",
    url: "/passport/logout?userId="+addValue['userId'],
    data: addValue,
  });
}

export function register(params) {
  return axios.post('/user/register', params);
}

